package com.yzdmw.toutiao.user;

import android.graphics.Bitmap;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class UserSignedViewModel extends ViewModel {
    private MutableLiveData<String> userName = new MutableLiveData<>("令狐冲冲冲");
    private MutableLiveData<Bitmap> userImage = new MutableLiveData<Bitmap>(null);

    public LiveData<String> getUserName() {
        return userName;
    }

    public MutableLiveData<Bitmap> getUserImage() {
        return userImage;
    }

    public void setUserName(String userName) {
        this.userName.setValue(userName);
    }

    public void setUserImage(Bitmap userImage) {
        this.userImage.setValue(userImage);
    }
}